<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <style>
        #tree li a:hover,#tree li a:active,#tree li a:focus {
            color: #1E9FFF;;
        }
        .orgbox{
             display: inline-block;
             min-height: 410px;
             border: 1px solid #ddd;
             overflow: auto;
         }
        .site-tips{
            display: inline-block;
            vertical-align: top;
        }
    </style>
</head>
<body class="childrenBody">
<div class="layui-fluid" id="LAY-app-table">
    <div class="layui-card layui-row layui-col-space15" style="padding: 15px;">
        <div class="orgbox layui-col-md2">
            <ul id="tree"></ul>
        </div>
        <div class="site-tips layui-col-md10" id="demo2-view">
            <blockquote class="layui-elem-quote quoteBox">
                <form class="layui-form">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal addBtn">添加</a>
                    </div>
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-danger layui-btn-normal delBtn">删除</a>
                    </div>
                </form>
            </blockquote>
            <div id="viewForm">
                点击左侧菜单，右侧将会显示当前点击节点的对应内容
            </div>
        </div>
    </div>
</div>
<script id="formBox" type="text/html">
    <div></div>
    <form class="layui-form" action="" lay-filter="component-form-element">
        <div class="layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">分类名称：</label>
                <div class="layui-input-inline">
                    <input type="hidden" name="id" value="{{d.id}}">
                    <input type="text" name="name" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{{d.name}}">
                </div>
            </div>
        </div>
        <div class="layui-row layui-col-space10 layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">父级分类：</label>
                <div class="layui-input-block">
                    <input name="parentId" type="text" id="tree-select" lay-filter="tree" class="layui-input" value="{{d.parentId}}">
                </div>
            </div>
        </div>
        <!--<div class="layui-row layui-col-space10 layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">是否展示：</label>
                <div class="layui-input-inline">
                    <input name="isShow" id="isShow" value="{{d.isShow}}" lay-skin="switch" lay-filter="switchTest" lay-text="是|否" type="checkbox">
                </div>
            </div>
        </div>-->
        <div class="layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">排序：</label>
                <div class="layui-input-inline">
                    <input type="text" name="sort" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{{d.sort || '' }}">
                </div>
                <cite class="layui-input-inline" style="color: #999999;padding: 9px 15px;">* 数值越小越前</cite>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">热门：</label>
                <div class="layui-input-inline">
                    <input type="text" name="isShow"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{{d.isShow}}">
                </div>
                <cite class="layui-input-inline" style="color: #999999;padding: 9px 15px;">* 1表示是</cite>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-col-lg6">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <input type="text" name="remarks" placeholder="" autocomplete="off" class="layui-input" value="{{d.remarks || '' }}">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="edit">提交修改</button>
                <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
            </div>
        </div>
    </form>
</script>
<script src="/layui/layui.js"></script>
<script src="/js/common/jquery-3.3.1.js"></script>
<script src="/js/common/jquery.cookie.js"></script>
<script src="/js/common.js"></script>
<script src="/layui/mymodule/common.js"></script>
<script src="/js/cms/content/contentCategory.js"></script>
</body>
</html>